package com.cqc.googleplay.activity;

import java.util.ArrayList;
import java.util.List;

import com.cqc.googleplay.R;
import com.cqc.googleplay.adapter.Part3Adapter;
import com.cqc.googleplay.view.HackyViewPager;

import android.app.Activity;
import android.content.Intent;
import android.os.Bundle;

public class ImageScalActivity extends Activity {
	
	private List<String> screenList;
	private int currentPager;
	private HackyViewPager viewPager;

	@Override
	protected void onCreate(Bundle savedInstanceState) {
		super.onCreate(savedInstanceState);
		setContentView(R.layout.activity_image_scal);
		viewPager = (HackyViewPager) findViewById(R.id.hackyViewPager);
		Intent intent = getIntent();
		screenList = intent.getStringArrayListExtra("screenList");
		currentPager = intent.getIntExtra("currentPager", 0);
		
		Part3Adapter adapter = new Part3Adapter(screenList);
		viewPager.setAdapter(adapter);
		viewPager.setCurrentItem(currentPager);
	}
}
